Virtual reality display method, device and storage medium

ABSTRACT

A virtual reality display method and device, and a storage medium are provided. The virtual reality display method includes: rendering display data of a plurality of screens in sequence by utilizing at least one thread of at least two threads, and after rendering the display data of the plurality of screens, correcting the rendered display data by using the at least two threads.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application claims the benefit of and is a continuation-in-part application of U.S. patent application Ser. No. 18/004,173 filed on Jan. 3, 2023. U.S. patent application Ser. No. 18/004,173 is a U.S. National Phase of International Application No. PCT/CN2021/117987, entitled “VIRTUAL REALITY DISPLAY METHOD, DEVICE AND STORAGE MEDIUM”, and filed on Sep. 13, 2021. International Application No. PCT/CN2021/117987 claims priority to Chinese Patent Application No. 202011177945.2 filed on Oct. 29, 2020. The entire contents of each of the above-listed applications are hereby incorporated by reference for all purposes.

TECHNICAL FIELD

The present disclosure relates to the field of display technologies, and in particular, to a virtual reality display method and device, and a storage medium.

BACKGROUND

Virtual Reality (VR) system is a computer simulation system that can create and experience a Virtual world by fusing multi-source information to provide an interactive three-dimensional dynamic view to a user and by simulating user behavior to immerse the user into the simulated environment. The virtual reality technology includes various aspects such as environment simulation technology, user behavior perception technology and the like. The environment simulation technology is to generate real-time dynamic three-dimensional vivid images through a computer. The user behavior perception technology means that an ideal virtual reality system can know all perceptions of a user. In addition to visual perception generated by computer graphics technology, there are also perceptions such as auditory sensation, touch sensation, force sensation, and movement, and even olfactory sensation and taste sensation, which are also called multi-perception.

The widespread deployment of virtual reality technology requires that virtual reality applications can maintain a higher frame rate to provide more real-time three-dimensional stereoscopic images.

SUMMARY

According to at least one embodiment of the present disclosure, there is provided a virtual reality display method including: rendering the display data of the plurality of screens in sequence by utilizing at least one thread of at least two threads; and after rendering the display data of the plurality of screens, correcting the rendered display data by using the at least two threads.

In some embodiments of the present disclosure, the at least two threads include a first thread and a second thread, and the multiple screens include a first screen and a second screen, and the rendering the display data of the plurality of screens in sequence by utilizing at least one thread of at least two threads includes: executing the first thread to render the first screen display data and the second screen display data in sequence; where the correcting the rendered display data by using the at least two threads after rendering the display data of the plurality of screens includes: after rendering the first screen display data, executing the second thread to correct the rendered first screen display data to obtain first screen display correction data; and after rendering the second screen display data, executing the first thread to correct the rendered second screen display data to obtain second screen display correction data. Duration of the executing the first thread to render the second screen display data is at least partially overlapped with duration of the executing the second thread to correct the rendered first screen display data.

In some embodiments of the present disclosure, the first thread and the second thread are selected from a rendering thread and a data correction thread, and the first thread is different from the second thread.

In some embodiments of the present disclosure, the method further includes: determining average frame rendering time, where the average frame rendering time is an average value of respective rendering times of all frames within a preset time period; based on the average frame rendering time, performing backlight adjustment processing on the first screen display correction data to obtain first backlight data and performing backlight adjustment processing on the second screen display correction data to obtain second backlight data.

In some embodiments of the present disclosure, the performing backlight adjustment processing on the first screen display correction data to obtain first backlight data and performing backlight adjustment processing on the second screen display correction data to obtain second backlight data based on the average frame rendering time includes: in response to that the average frame rendering time is less than or equal to a first preset value, executing the second thread to perform backlight adjustment processing on the first screen display correction data to obtain the first backlight data and executing the second thread to perform backlight adjustment processing on the second screen display correction data to obtain the second backlight data, where the first preset value is less than current Frames Per Second.

In some embodiments of the present disclosure, the performing backlight adjustment processing on the first screen display correction data to obtain first backlight data and performing backlight adjustment processing on the second screen display correction data to obtain second backlight data based on the average rendering time includes: in response to that the average frame rendering time is greater than a first preset value and less than or equal to current Frames Per Second, executing the second thread to perform backlight adjustment processing on the first screen display correction data to obtain the first backlight data, and executing the first thread to perform backlight adjustment processing on the second screen display correction data to obtain the second backlight data.

In some embodiments of the present disclosure, prior to executing the first thread to render the second screen display data, the method further includes: acquiring a vertical synchronization signal; when the vertical synchronizing signal is an odd-numbered vertical synchronizing signal, the first thread is a rendering thread; when the vertical synchronizing signal is an even-numbered vertical synchronizing signal, the first thread is a data correction thread; or, when the vertical synchronizing signal is an even-numbered vertical synchronizing signal, the first thread is a rendering thread; when the vertical synchronization signal is an odd-numbered vertical synchronization signal, the first thread is a data correction thread.

In some embodiments of the present disclosure, the at least two threads include a first thread and a second thread, the plurality of screens include a first screen and a second screen, and the rendering the display data of the plurality of screens in sequence by utilizing at least one thread of at least two threads includes: executing the first thread to render the first screen display data, where the correcting the rendered display data by using the at least two threads after rendering the display data of the plurality of screens includes: after rendering the first screen display data, executing the first thread to perform correction and backlight adjustment processing on the rendered first screen display data to obtain first backlight data; after rendering the first screen display data, executing the second thread to render the second screen display data and perform correction and backlight adjustment processing on the rendered second screen display data to obtain second backlight data.

In some embodiments of the present disclosure, prior to the executing the first thread to render the first screen display data, the method further includes: determining average frame rendering time, where the average frame rendering time is an average value of respective rendering times of all frames within a preset time period; in response to that the average frame rendering time is greater than current Frames Per Second, executing the first thread to render the first screen display data.

In some embodiments of the present disclosure, subsequent to executing the second thread to correct the rendered first screen display data and obtain first screen display correction data, the method further includes: executing the second thread to send the first screen display correction data to the first thread.

In some embodiments of the present disclosure, subsequent to executing the second thread to send the first screen display correction data to the first thread, the method further includes: executing the first thread to send the first screen display correction data and the second screen display correction data to a display cache for screen display.

In some embodiments of the present disclosure, the first thread and the second thread are performed in parallel to obtain the first screen display correction data and the second screen display correction data.

In some embodiments of the present disclosure, the rendering of the first screen display data and the second screen display data is a multi-render-target rendering.

In some embodiments of the present disclosure, the executing the first thread to render the first screen display data and the second screen display data in sequence further includes: predicting first user pose data after a first predetermined amount of time for a display refresh frame, and perform rendering based on the first user pose data to obtain the rendered first and second screen display data.

In some embodiments of the present disclosure, the corrected output frequency of the display data is not less than 90% of the input frequency of the display data.

In some embodiments of the present disclosure, the method further includes: predicting second user pose data for a beginning node of a display frame of the first screen display data and the second screen display data and third user pose data for an ending node of the display frame; executing the second thread to correct the rendered first screen display data includes: correcting the rendered first screen display data based on the second user posture data and the third user posture data to obtain first screen display correction data; executing the first thread to correct the rendered second screen display data includes: and correcting the rendered second screen display data based on the second user posture data and the third user posture data to obtain second screen display correction data.

In some embodiments of the present disclosure, correcting the rendered first screen display data and second screen display data based on the second user pose data and the third user pose data includes: interpolating the second user pose data and the third user pose data to obtain first asynchronous time warp correction reference data, and then correcting the rendered first screen display data and second screen display correction data based on the first asynchronous time warp correction reference data.

There is further provided in accordance with at least one embodiment of the present disclosure a virtual reality display device including: a plurality of screens; a processor configured to render display data of a plurality of screens in sequence by utilizing at least one thread of at least two threads, and after rendering the display data of the plurality of screens, correct the rendered display data by using the at least two threads.

In some embodiments of the present disclosure, the at least two threads include a first thread and a second thread, the plurality of screens include a first screen and a second screen, the processor is further configured to execute the first thread to render the first screen display data and the second screen display data in sequence; after rendering the first screen display data, execute the second thread to correct the rendered first screen display data to obtain first screen display correction data; and after rendering the second screen display data, execute the first thread to correct the rendered second screen display data to obtain second screen display correction data; where duration of the executing the first thread to render the second screen display data is at least partially overlapped with duration of the executing the second thread to correct the rendered first screen display data.

In some embodiments of the present disclosure, the processor is further configured to: determine average frame rendering time, where the average frame rendering time is an average value of respective rendering times of all frames within a preset time period; based on the average frame rendering time, perform backlight adjustment processing on the first screen display correction data to obtain first backlight data and perform backlight adjustment processing on the second screen display correction data to obtain second backlight data.

In some embodiments of the present disclosure, in response to that the average frame rendering time is less than or equal to a first preset value, the processor is further configured to execute the second thread to perform backlight adjustment processing on the first screen display correction data to obtain the first backlight data and execute the second thread to perform backlight adjustment processing on the second screen display correction data to obtain the second backlight data; where the first preset value is less than current Frames Per Second.

In some embodiments of the present disclosure, in response to that the average frame rendering time is greater than a first preset value and less than or equal to current Frames Per Second, the processor is further configured to execute the second thread to perform backlight adjustment processing on the first screen display correction data to obtain the first backlight data, and execute the first thread to perform backlight adjustment processing on the second screen display correction data to obtain the second backlight data.

In some embodiments of the present disclosure, the virtual reality display device further includes: a clock generator configured to generate a vertical synchronization signal; the processor is further configured to obtain a vertical synchronization signal, execute the first thread and the second thread based on the vertical synchronization signal, and when the vertical synchronization signal is an odd-numbered vertical synchronization signal, the first thread is a rendering thread; when the vertical synchronizing signal is an even-numbered vertical synchronizing signal, the first thread is a data correction thread; or, if the vertical synchronization signal is an even-numbered vertical synchronization signal, the first thread is a rendering thread; if the vertical synchronization signal is an odd-numbered vertical synchronization signal, the first thread is a data correction thread.

In some embodiments of the present disclosure, the at least two threads include a first thread and a second thread, the plurality of screens include a first screen and a second screen, and the processor is further configured to: execute the first thread to render the first screen display data; after rendering the first screen display data, execute the first thread to perform correction and backlight adjustment processing on the rendered first screen display data to obtain first backlight data; after rendering the first screen display data, execute the second thread to render the second screen display data and perform correction and backlight adjustment processing on the rendered second screen display data to obtain second backlight data.

In some embodiments of the present disclosure, the processor is further configured to execute the second thread to send the first screen display correction data to the first thread.

In some embodiments of the present disclosure, the processor is further configured to execute the first thread to send the first screen display correction data and the second screen display correction data to a display buffer for screen display.

There is also provided in accordance with at least one embodiment of the present disclosure a virtual reality display device including: a processor and a memory, the memory storing computer-executable instructions that, when executed by the processor, perform the virtual reality display method as described above.

There is also provided in accordance with at least one embodiment of the present disclosure a non-transitory computer-readable storage medium storing computer-executable instructions, where the computer-executable instructions, when executed by a processor, perform the virtual reality display method as described above.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic diagram of no new rendering frame output when a synchronization signal Vsync arrives;

FIG. 2 is a schematic diagram of an asynchronous process generating a new frame based on the most recently completed frame of the rendering process before each vertical synchronization;

FIG. 3 is a schematic diagram of synchronous operation of an asynchronous time-warp thread and a rendering thread;

FIG. 4 is a schematic diagram of an image divided into high definition and non-high definition regions;

FIG. 5 is a schematic diagram of a dropped frame;

FIG. 6 is a flow chart of a virtual reality display method according to one embodiment of the disclosure;

FIG. 7 is a schematic view showing operations of a rendering thread and an asynchronous time-warping thread according to one embodiment of the disclosure;

FIG. 8 is a schematic view showing operations of a rendering thread and an asynchronous time-warping thread according to one embodiment of the disclosure;

FIG. 9 is another flow chart of the virtual reality display method according to one embodiment of the disclosure;

FIG. 10 is another schematic view showing operations of the rendering thread and the asynchronous time-warping thread according to one embodiment of the disclosure;

FIG. 11 is yet another flow chart of the virtual reality display method according to one embodiment of the disclosure;

FIG. 12 is yet another schematic view showing operations of the rendering thread and the asynchronous time-warping thread according to one embodiment of the disclosure;

FIG. 13 is still yet another schematic view showing operations of the rendering thread and the asynchronous time-warping thread according to one embodiment of the present disclosure;

FIG. 14 is still yet another flow chart of the virtual reality display method according to one embodiment of the disclosure;

FIG. 15 is still yet another schematic view showing operations of the rendering thread and the asynchronous time-warping thread according to one embodiment of the present disclosure;

FIG. 16 is still yet another flow chart of the virtual reality display method according to one embodiment of the present disclosure;

FIG. 17 is still yet another flow chart of the virtual reality display method according to one embodiment of the present disclosure; and

FIG. 18 is a schematic structural diagram of a virtual reality display device according to one embodiment of the disclosure.

DETAILED DESCRIPTION

In order to make the objects, technical solutions, and advantages of the present disclosure more apparent, example embodiments according to the present disclosure will be described in detail below with reference to the accompanying drawings. It should be understood that the described embodiments are only some of the embodiments of the present disclosure, and not all of the embodiments of the present disclosure, and it is to be understood that the present disclosure is not limited by the example embodiments described herein. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure described in the disclosure without inventive step, shall fall within the scope of protection of the disclosure.

It is to be noted that in the present specification and the drawings, steps and elements having substantially the same meaning are denoted by the same reference numerals, and repeated description of the steps and elements will be omitted.

According to an example embodiment, the virtual reality system may include, for example, head mounted devices, such as virtual reality helmets, virtual reality glasses, etc., to generate an immersive virtual world environment from the user's actions, perception, etc. information. However, when using a virtual reality head mounted device, if the user moves too fast, a delay in scene rendering will result. For example, when the user turns his head quickly, although the user's head has turned past a predetermined position to reach a new position, an image corresponding to the predetermined position has not been rendered yet, or the rendered image is still an image of the previous frame, and thus the image seen by the user does not coincide with the image of the new position expected by the user, resulting in a delay in displaying the image and a feeling of vertigo of the user.

To reduce rendering image latency in a display scene, partial virtual reality devices employ Time Warping (TW) techniques. The time warping technique is a technique of modifying an image frame, which solves a scene rendering delay problem by warping (or correcting) scene data after rendering based on a change in a user's motion after rendering. Since the time-warping process is performed at a time closer to the display time, the time-warping process results in a new display image closer to the image that the user wishes to see. Meanwhile, since the time warping technique is only processing a two-dimensional image, it is similar to affine transformation in image processing, and it does not bring excessive system workload overhead.

Asynchronous Time Warping (ATW), the time warping technique described above, which schedules rendering and time warping separately in two different threads, so that the rendering and time warping steps can be performed asynchronously, thereby reducing the overall runtime of the rendering and time warping processes. For example, when the virtual reality application cannot maintain a sufficient frame rate, the asynchronous time warping thread may reprocess the previous rendered scene data according to the current user gesture to generate a frame picture (intermediate frame) conforming to the current user gesture, so as to reduce the jitter of the picture and better reduce the delay. The technology is the most critical technology for reducing delay and solving vertigo. Without ATW technology, as shown in FIG. 1 , if no new rendering Frame is output when the synchronization signal Vsync arrives, that is, the GPU (Graphics Processing Unit) cannot render the image of Frame N−1 completely, the data of Frame N−2 in the previous Frame will be displayed twice, and this will not generate an abnormal phenomenon when the user keeps the head motion still. However, when the user rotates from the old head position to the new position, the image corresponding to the old head position is still displayed on the screen at this time. At this time, the brain response has switched to the new head position, but the eyes receive the content of the old head position, the mismatch of the two information can cause the user to feel dizzy, and the bigger the rotation angle is, the stronger the dizzy feeling is. Asynchronous time warping before each vertical synchronization, an asynchronous process generates a new frame according to the frame which is completed by the rendering process most recently as shown in FIG. 2 , when no new rendering frame is output when the synchronous signal Vsync arrives, that is, when the GPU cannot render the image of frame-1 completely, the frame data corresponding to the new head position is generated by correcting the image of frame-2 (scanning and outputting the corresponding frame-1), and by this method, it is ensured that a new frame is generated according to the latest head position before each Vsync signal arrives, so that the vertigo feeling of the user can be reduced to a greater extent, and the comfort level of the VR product of the user can be improved.

Under the premise that the traditional mobile-end VR system refreshes a display mechanism, asynchronous time warping is processed in one thread (called ATW thread), and the thread and a rendering thread (called MRT thread) run synchronously. As shown in FIG. 3 , when acquiring Vsync signal, MRT thread renders the scene to be displayed, the rendered scene mainly depends on the pose data of the user after 1.5 frames predicted by Sensor, and ATW thread corrects and distorts the image frames of left and right eyes respectively based on the pose prediction of the scene rendered by MRT thread at a close time point, that is, when ATW acquires the scene data transmitted by MRT thread, ATW interpolates the pose data of the user predicted by Sensor to determine the pose data for ATW processing of the left eye image. At the time when the Vsync signal is acquired, the pose data for the ATW processing of the right-eye image is determined by interpolation based on the pose predicted by the Sensor, and a flowchart thereof is shown in FIG. 3 . It can be seen that, in the VR system refresh display mechanism, a total time of 2.5 frames is consumed from the acquisition of the gesture of the user to the final display of the image to the screen.

Analyzing based on the current high-resolution VR product and VR application, and improving the resolution of a fixation point area for improving the display effect, as shown in FIG. 4 , dividing an image into a high-definition area and a non-high-definition area, and then performing operations of high-definition area and non-high-definition area image taking, high-definition image and non-high-definition image anti-distortion, high-definition image LD (Local Dimming) processing, full-field image LD (Local Dimming) processing, high-definition image and full-field LD image splicing, and fixation point writing in the VR system; compared with the traditional VR system, high-definition region image taking is added in the MRT stage, high-definition image anti-distortion, high-definition image and non-high-definition image LD processing, high-definition region and non-high-definition LD image splicing and dynamic fixation point writing are added in the ATW stage; when the method is applied to a mobile terminal display product, due to the limited computing capability of the mobile terminal, after the resolution of an image is improved, the time consumption of an ATW stage is obviously increased, so that the phenomena of serious frame dropping of an all-in-one machine frame rate and tearing of a picture occur, as shown in FIG. 5 ; compared with the traditional VR system, the time for processing the MRT and the ATW is increased, but the left-eye and right-eye rendering time in the MRT stage can still ensure that the processing is completed within one frame, and the rendering time of the monocular ATW, which is different from the previous rendering time, can be controlled within a half frame, so that the frame rate is sharply reduced.

The embodiment of the disclosure provides a virtual reality display method and device, which can improve the frame dropping phenomenon shown in FIG. 5 , shorten the rendering time and the display time of the rendered image by adjusting the starting time of rendering left and right eyes, and reduce the delay between the rendering of the left and right eye images and the display.

According to at least one embodiment of the present disclosure, there is provided a virtual reality display method, as shown in FIG. 6 , including: step 101: rendering the display data of the plurality of screens in sequence by utilizing at least one thread of at least two threads; step 102: after rendering the display data of the plurality of screens, correcting the rendered display data by using the at least two threads.

In this embodiment of the present disclosure, after rendering the display data of multiple screens, the rendered display data is corrected by using at least two threads, instead of correcting the rendered display data by using one thread, so that the time of using multiple threads can be maximized, the performance of the current processor is fully utilized, and the frame drop phenomenon is greatly improved.

The at least two threads may include two threads or three threads or more, the multiple screens may include two screens or three screens or more, and the display data of the multiple screens are different from each other.

In this embodiment of the present disclosure, the step of rendering the display data of the multiple screens in sequence by using at least one thread of the at least two threads means that the display data of the first screen is rendered by using at least one thread, then the display data of the second screen is rendered, then the display data of the third screen is rendered, and so on, and the rendering of the display data of the multiple screens is completed in sequence. For example, a first thread may be used to render the display data of the first screen, and a second thread may be used to render the display data of the second screen, thereby completing the rendering of the display data of the two screens.

In the virtual reality display method of the embodiment of the present disclosure, two threads running in parallel, namely a first thread and a second thread, may be included. For example, the virtual reality display method may be applied to a virtual reality display device or an augmented reality display device including a left-eye display screen and a right-eye display screen, such as a virtual display helmet, an augmented reality display helmet, and the like, which may further include a motion sensor such as a gyroscope, an acceleration sensor, and the like, a Central Processing Unit (CPU), a memory, an image processing unit (GPU), a communication device, and the like. The method may be executed, for example, by a central processing unit or an image processing unit for the virtual reality display device, which may employ various suitable operating systems, such as an android system, a Linux system, a Unix system, or a Windows system, and a case of the android system is taken as an example for illustration hereinafter, but the embodiment of the present disclosure is not limited thereto.

In an embodiment of the present disclosure, the at least two threads include a first thread and a second thread, the plurality of screens include a first screen and a second screen, and the rendering the display data of the plurality of screens in sequence by utilizing at least one thread of at least two threads includes: executing the first thread to render the first screen display data and the second screen display data in sequence;

-   -   the correcting the rendered display data by using the at least         two threads after rendering the display data of the plurality of         screens includes: after rendering the first screen display data,         executing the second thread to correct the rendered first screen         display data to obtain first screen display correction data; and         after rendering the second screen display data, executing the         first thread to correct the rendered second screen display data         to obtain second screen display correction data; where duration         of the executing the first thread to render the second screen         display data is at least partially overlapped with duration of         the executing the second thread to correct the rendered first         screen display data.

In this embodiment of the present disclosure, performing correction on the rendered first screen display data is not after the first thread renders the second screen display data, rather, the second thread is executed to correct the rendered first screen display data after the first thread renders the first screen display data, and the first thread is executed to correct the rendered second screen display data after the first thread renders the second screen display data, so that the time of each frame of two threads can be maximally utilized, rendering and image correction are completed before image throwing operation of each frame, the performance of a current processor is fully utilized, and the frame drop phenomenon is greatly improved; and by adjusting the rendering starting time, the rendering time is shortened from the time when the rendered image is displayed, and the time delay between the rendering and the display of the image is reduced.

The first screen display data and the second screen display data are, for example, pre-stored image data read from a storage device, for example, for a virtual reality display device, the pre-stored image data includes image data of a corresponding application, for example, image data of a tour museum, a race track of a racing game, and the like.

Optionally, the first screen may be a screen displaying an image seen by the left eye of the user, and the second screen may be a screen displaying an image seen by the right eye of the user. The first screen display data may include various parameters of objects that should be presented in the field of view of the left eye of the user, and the second screen display data may include various parameters of objects that should be presented in the field of view of the right eye of the user. As described above, the meanings of the first screen and the second screen may be interchanged, and the first screen and the second screen may be various types of display screens, for example, a Liquid Crystal Display (LCD), an organic light emitting diode display (OLED), a Micro-LED display, or the like. These display devices implement refreshing of a display image of one frame by, for example, progressive scanning or the like.

In order to make the image presented by the virtual reality device be all objects that the user can observe in the visual field when the user uses the virtual reality device, all objects in the visual field of the user are generally rendered. Meanwhile, different images need to be presented to the left eye and the right eye of the user (i.e., parallax is formed), and then the brain of the user synthesizes the different images of the left eye and the right eye, so that the image with stereoscopic impression is presented to the user. Thus, the first screen display data and the second screen display data may differ in parameters for the same object. For example, the position of the object viewed by the left and right eyes for the same object, and the case where light is refracted to the left and right eyes through the object may also be different, and thus, in the present disclosure, both the first screen display data and the second screen display data are rendered. By adopting the mode, compared with the mode that the whole object is rendered firstly and then the rendering output result is output to the first screen and the second screen through affine transformation, the method can obtain more accurate images with stronger stereoscopic impression.

In this embodiment of the present disclosure, the first thread and the second thread are selected from a rendering thread and a data correction thread, and the first thread is different from the second thread. The data correction thread may be the asynchronous time-warping described above.

Optionally, the rendering of the first screen display data and the second screen display data is a multi-render-target rendering.

The multi-render target rendering technique may save data of multiple pixels into different buffers (e.g., a buffer for color mapping, a buffer for normal mapping, and a buffer for depth mapping) so that these data become parameters of a subsequent lighting effect shader, so that the fineness of the output image is improved. By the multi-rendering-target rendering technology, the rendering of the illumination information can be delayed, and the rendering processing speed is improved. Meanwhile, since the first screen display data and the second screen display data are rendered respectively, it is necessary to store the pixel data of each object in the first screen display data and the second screen display data to the cache region, and then analyze the data in the illumination effect rendering process, thereby enhancing the illumination effect of the images displayed in the first screen and the second screen. Compared with the conventional method of respectively performing illumination coloring calculation on each pixel in the whole scene by using an illumination color machine, in the embodiment of the disclosure, the multiple rendering target rendering on the first screen display data and the second screen display data respectively can reduce the operation times of the illumination coloring calculation performed by the processor, and can obtain an image with enhanced illumination effect.

In some embodiments of the present disclosure, the method further includes: determining average frame rendering time, where the average frame rendering time is an average value of respective rendering times of all frames within a preset time period; based on the average frame rendering time, performing backlight adjustment processing on the first screen display correction data to obtain first backlight data and performing backlight adjustment processing on the second screen display correction data to obtain second backlight data.

In some embodiments of the present disclosure, the backlight adjustment processing includes Local Dimming (LD) processing, e.g., partial-field image LD processing, full-field image LD processing.

In some embodiments of the present disclosure, in the case of the refresh display mechanism of the mobile-end VR system, asynchronous time warping is processed in one thread (called ATW thread), and the thread and the rendering thread (called MRT thread) run synchronously, so as to perform correction on the rendered image rendered by the rendering thread based on the predicted pose information at a close time point.

As shown in FIG. 7 , when acquiring an intermediate frame signal of a previous frame, the MRT thread renders the scene to be displayed, the rendered scene mainly depends on the pose data of the user at point a predicted by the Sensor (predicted at a time point a where an image has been actually seen by the user when finishing the display, T1=2 frames), where T1 represents a time span from the left-eye rendering time to the display time. The ATW thread performs correction and anti-distortion on the image frames of the left and right eyes respectively based on the pose prediction of the scene rendered by the MRT thread at a close time point. That is, when ATW acquires the scene data transmitted by the MRT thread, ATW interpolates the pose data of the user predicted by Sensor at the time point a (T2=1 frame) to determine the pose data for ATW processing of the left eye image, performs local diming algorithm processing on the left-eye image after ATW processing to obtain backlight data, and transmits the backlight data to a left screen backlight receiving module through Serial Peripheral Interface (SPI) or Universal Serial Bus (USB) data transmission mode. T2 represents a time span from the right-eye rendering time to the display time. When acquiring a Vsync signal of a current frame, the screen for the left eye and the left eye backlight data are displayed synchronously. At the same time, based on a gesture of the user predicted by the Sensor at time point c, pose data used for ATW processing of the right eye image is determined. Local diming algorithm processing is performed on the right eye image after ATW processing to obtain right eye backlight data, and the right eye backlight data is sent to a right screen backlight receiving module through SPI or USB data transmission. At the time of receiving an intermediate frame signal of the current frame, the screen for the right eye and the right eye backlight data are displayed synchronously. In the refresh display mechanism, a total time of 3 frames is consumed from the acquisition of the gesture of the user to the final display of the image on the screen, and it is a long time.

The following scheme is proposed in the embodiments of the present disclosure. Respective rendering times of all frames within the preset time period are calculated to obtain an average frame rendering time, so as to adjust a timing sequence of the virtual reality display method and device in real time in accordance with the real-time average frame rendering time during operation, thereby to utilize a resource of the processor in a better manner and greatly reduce the delay. For example, when the total rendering time of the left and right eyes is less than or equal to a time of half one frame (i.e., current FPS*0.5), it is able to utilize the time of the current frame fully, that is, the time of the current frame is divided in finer manner for ATW correction and local dimming algorithm processing, and the reasonable timing sequence adjustment does not affect the display timing sequence of the system. When the total rendering time of the left and right eyes is greater than half one frame and less than or equal to one frame (i.e., current FPS), it is able to reduce the delay by adjusting specific operations of the MRT thread and the ATW thread of odd frames and even frames. When the total rendering time of the left and right eyes is greater than one frame, a serious frame dropping issue occurs, at this time, it is able to adjust the processing timing sequence of ATW correction and rendering, so as to mitigate the frame dropping issue.

In some embodiments of the present disclosure, the performing backlight adjustment processing on the first screen display correction data to obtain first backlight data and performing backlight adjustment processing on the second screen display correction data to obtain second backlight data based on the average frame rendering time includes: in response to that the average frame rendering time is less than or equal to a first preset value, executing the second thread to perform backlight adjustment processing on the first screen display correction data to obtain the first backlight data and executing the second thread to perform backlight adjustment processing on the second screen display correction data to obtain the second backlight data, where the first preset value is less than current Frames Per Second.

In some embodiments of the present disclosure, the first preset value may be a time of half one frame, i.e., current FP S*0.5.

It should be appreciated that, duration of the executing the second thread to perform backlight adjustment processing on the first screen display correction data is at least partially overlapped with the duration of the executing the first thread to render the second screen display data, i.e., the executing the second thread to perform backlight adjustment processing on the first screen display correction data and the executing the first thread to render the second screen display data run synchronously.

In some embodiments of the present disclosure, the executing the second thread to perform backlight adjustment processing on the second screen display correction data is performed after the first thread performs correction on the rendered second screen display data.

When the average frame rendering time is less than or equal to FPS*0.5, the virtual reality display method may be referred to as a frame subdivision mode. For example, as shown in FIG. 8 , one frame is divided into 4 equal parts, and the first thread, such as the MRT thread, starts left eye image rendering at the time of the intermediate frame of an Nth frame based on the predicted user gesture at the time point b. In response to that the rendering time is less than 0.25 FPS, the second thread, such as the ATW thread, starts to perform ATW processing on the rendered left-eye image at 0.75 FPS of the Nth frame based on the predicted user gesture at the time point b, and at the same time, the MRT thread starts rendering Nth frame right-eye image (based on user gesture at time point c). When a Vsync signal of a (N+1)th frame arrives, the MRT thread performs ATW processing on the right eye image based on the user gesture at time point c. At 0.25 FPS of the (N+1)th frame, the ATW thread performs local dimming processing on the left-eye image of the Nth frame after ATW processing to obtain backlight data, and transmits the left-eye backlight data to the left screen backlight receiving module through the SPI or USB data transmission manner. The ATW thread performs waiting operation until the time of intermediate frame of the (N+1)th frame, and then performs local dimming processing on the right-eye image after ATW processing to obtain backlight data, and send the right-eye backlight data to the right screen backlight receiving module through SPI or USB data transmission manner. In the scheme, an absolute delay is 1.25 frames, which reduces the delay by 0.75 frames as compared with the scheme in FIG. 7 , and T1 remains unchanged. Through shortening the time from the rendering time to the display time of the rendered image, it is able to reduce the delay between the image rendering and display, so as to obtain more accurate images with stronger stereoscopic impression. An operation flowchart of the frame subdivision mode may be shown in FIG. 9 . Step 901, the Vsync signal of the Nth frame is received. Step 902, the MRT thread performs ATW processing on the right-eye image of the Nth frame, and transmits the left and right eye images of the (N−1)th frame to a frame buffer, and the ATW thread performs LD processing on the rendered the left-eye image of the Nth frame to obtain left-eye backlight data, and sends the left-eye backlight data. Step 903, whether the rendering time is less than 0.25 FPS is determined, if yes, step 904 is performed, otherwise waiting operation is performed. Step 904, the ATW thread performs LD processing on the rendered right-eye image of the Nth frame to obtain right-eye backlight data, and sends the right-eye backlight data. Step 905, whether the intermediate frame signal (Vsync*0.5 signal) of the Nth frame is received is determined, when the intermediate frame signal of the Nth frame is received, step 906 is performed, and if not, waiting operation is performed. Step 906, the MRT thread renders a left-eye image of a (N+1)th frame. Step 907, whether the current time point is within the FPS*0.75 of the Nth frame is determined, if yes, step 908 is performed, otherwise waiting operation is performed. Step 908, the MRT thread performs ATW processing on the rendered left-eye image of the (N+1)th frame, and the ATW thread renders a right-eye image of the (N+1)th frame.

In some embodiments of the present disclosure, the performing backlight adjustment processing on the first screen display correction data to obtain first backlight data and performing backlight adjustment processing on the second screen display correction data to obtain second backlight data based on the average rendering time includes: in response to that the average frame rendering time is greater than a first preset value and less than or equal to current Frames Per Second, executing the second thread to perform backlight adjustment processing on the first screen display correction data to obtain the first backlight data, and executing the first thread to perform backlight adjustment processing on the second screen display correction data to obtain the second backlight data.

In some embodiments of the present disclosure, the first preset value may be a time of half one frame, i.e., current FPS*0.5.

It should be appreciated that, duration of the executing the second thread to perform backlight adjustment processing on the first screen display correction data is at least partially overlapped with the duration of the executing the first thread to render the second screen display data, i.e., the executing the second thread to perform backlight adjustment processing on the first screen display correction data and the executing the first thread to render the second screen display data run synchronously.

In some embodiments of the present disclosure, the executing the first thread to perform backlight adjustment processing on the second screen display correction data is performed after the first thread performs correction on the rendered second screen display data.

In this embodiment, prior to executing the first thread to render the second screen display data, the method further includes: acquiring a vertical synchronization signal. The first thread and the second thread render the first screen display data and the second screen display data according to the vertical synchronization signal, so that pictures which a user wants to see are obtained, and the synchronism of the first screen display and the second screen display can be increased. Specifically, a Vertical synchronization (Vsync) signal is a synchronization signal applied between two frames to the display device, which indicates the end of the previous frame and the start of the next frame. This signal is active once before each frame scan, from which the field frequency of the display device, i.e. the number of refreshes of the screen per second, also referred to as the refresh frequency of the display device, can be determined. For example, the refresh frequency of the display device may be 60 Hz, 120 Hz, etc., i.e., 60, 120, etc. refreshes per second, with one display frame time being 1/60 seconds, 1/120 seconds, etc. The vertical synchronization signal is generated by a display driving device (e.g., a video card), and is used to synchronize a gate driving signal, a data signal, and the like required for displaying a frame of picture in a display process.

In some embodiments of the present disclosure, the vertical synchronization signal sent by the system is divided into odd and even, and if the vertical synchronization signal is an odd-numbered vertical synchronization signal, the first thread is a rendering thread; when the vertical synchronizing signal is an even-numbered vertical synchronizing signal, the first thread is a data correction thread; or, when the vertical synchronization signal is an even-numbered vertical synchronization signal, the first thread is a rendering thread; when the vertical synchronization signal is an odd-numbered vertical synchronization signal, the first thread is a data correction thread.

Specifically, taking the data correction thread as an asynchronous time warping thread as an example, when the vertical synchronization signal is an odd-numbered vertical synchronization signal, the first thread is a rendering thread, and the second thread is an asynchronous time warping thread; when the vertical synchronization signal is an even-numbered vertical synchronization signal, the first thread is an asynchronous time warping thread, and the second thread is a rendering thread; when the vertical synchronization signal is an odd-numbered vertical synchronization signal, rendering the first screen display data and the second screen display data in sequence by using a rendering thread, after the first screen display data is rendered, correcting the rendered first screen display data by using an asynchronous time warping thread to obtain first screen display correction data, and after the second screen display data is rendered, performing the rendering thread to correct the rendered second screen display data to obtain second screen display correction data; when the vertical synchronizing signal is an even-numbered vertical synchronizing signal, an asynchronous time warping thread is executed to render the first screen display data and the second screen display data in sequence, after the first screen display data is rendered, the rendering thread is executed to correct the rendered first screen display data to obtain first screen display correction data, and after the second screen display data is rendered, the asynchronous time warping thread is executed to correct the rendered second screen display data to obtain second screen display correction data. Therefore, by adjusting the running mechanisms of the rendering thread and the asynchronous time warping thread, different processing operations are distributed to the MRT thread and the ATW thread in the odd-even frame, the time of each frame of the two threads is maximally utilized under the condition that the ATW exceeds the half frame time, rendering and image correction are completed before the image throwing operation of each frame, the performance of the current AP processor can be fully utilized, the frame dropping phenomenon shown in the FIG. 5 is improved to the maximum extent, and the rendering time is shortened from the rendering time to the display time of the rendered image by adjusting the starting time of the left and right rendering eyes.

In another specific example, the following may also be: when the vertical synchronization signal is an even-numbered vertical synchronization signal, the first thread is a rendering thread, and the second thread is an asynchronous time warping thread; when the vertical synchronization signal is an odd-numbered vertical synchronization signal, the first thread is an asynchronous time-warping thread, and the second thread is a rendering thread. When the vertical synchronization signal is an even-numbered vertical synchronization signal, rendering the first screen display data and the second screen display data in sequence by using the rendering thread, after the first screen display data is rendered, correcting the rendered first screen display data by using the asynchronous time warping thread to obtain first screen display correction data, and after the second screen display data is rendered, performing the rendering thread to correct the rendered second screen display data to obtain second screen display correction data; when the vertical synchronizing signal is an odd-numbered vertical synchronizing signal, an asynchronous time warping thread is executed to render the first screen display data and the second screen display data in sequence, after the first screen display data is rendered, the rendering thread is executed to correct the rendered first screen display data to obtain first screen display correction data, and after the second screen display data is rendered, the asynchronous time warping thread is executed to correct the rendered second screen display data to obtain second screen display correction data. Therefore, by adjusting the running mechanisms of the rendering thread and the asynchronous time warping thread, different processing operations are distributed to the MRT thread and the ATW thread in the odd-even frame, the time of each frame of the two threads is maximally utilized under the condition that the ATW exceeds the half frame time, rendering and image correction are completed before the image throwing operation of each frame, the performance of the current AP processor can be fully utilized, the frame dropping phenomenon shown in the FIG. 5 is improved to the maximum extent, and the rendering time is shortened from the rendering time to the display time of the rendered image by adjusting the starting time of the left and right rendering eyes.

In some embodiments of the present disclosure, when the average frame rendering time is greater than FPS*0.5 and less than or equal to FPS (Frames Per Second), the virtual reality display method may be referred to as an odd-even frame mode. For example, as shown in FIG. 10 and FIG. 11 , frames are divided into odd-numbered frames and even-numbered frames alternately, and one frame is divided into 2 equal parts. Step 1101, Vsync signal is received. When the current frame corresponding to the Vsync signal is an odd-numbered frame, in step 1102, the MRT thread performs ATW correction on the left-eye image of the Nth frame rendered in the previous frame, and then performs local dimming algorithm processing to obtain the left-eye backlight data, transmits the left-eye image of the Nth frame to a frame buffer, and sends the left-eye backlight data to the left screen backlight receiving module through SPI or USB data transmission. At the same time, the ATW thread starts to render the right-eye image of the Nth frame, and then performs local dimming algorithm processing on the rendered right-eye image to obtain the right-eye backlight data of the Nth frame, transmits the right-eye image of the Nth frame to the frame buffer, and sends the right-eye backlight data to the right screen backlight receiving module through SPI or USB data transmission manner. Step 1103, the MRT thread waits for the intermediate frame signal of the Nth frame, and when the intermediate frame signal of the Nth frame arrives, the MRT thread renders a left-eye image of a subsequent frame ((N+1)th frame) (step 1104). Step 1104, after LD processing, the ATW thread transmits the right-eye image to the frame buffer and sends the right-eye backlight data to the right-screen backlight receiving module through SPI or USB data transmission manner. Step 1105, when the current frame corresponding to the Vsync signal is an even frame, the MRT thread renders the right-eye image of the (N+1)th frame, and then performs local dimming processing on the rendered right-eye image of the (N+1)th frame to obtain the right eye backlight data of the (N+1)th frame, and sends the right eye backlight data to the right screen backlight receiving module through SPI or USB data transmission. The ATW thread performs ATW processing and local dimming processing on the left eye image of the (N+1)th frame rendered in the previous frame (i.e., the Nth frame) to obtain the left eye backlight data, and sends the left eye backlight data to the left screen backlight receiving module through SPI or USB data transmission. When the ATW thread waits for and obtains the intermediate frame signal of the (N+1)th frame (step 1106), the ATW thread renders a left-eye image of a (N+2)th frame (step 1107). In the scheme, an absolute delay is 1.5 frames, which reduces the delay by half frame as compared with the scheme in FIG. 7 , T1=1.5 FPS, T2=1 FPS, which is the same as T2 in the scheme of FIG. 7 . Through shortening the time from the rendering time to the display time of the rendered image, it is able to reduce the delay between the image rendering and display, so as to obtain more accurate images with stronger stereoscopic impression.

In some embodiments of the present disclosure, the at least two threads include a first thread and a second thread, the plurality of screens include a first screen and a second screen, and the rendering the display data of the plurality of screens in sequence by utilizing at least one thread of at least two threads includes: executing the first thread to render the first screen display data, where the correcting the rendered display data by using the at least two threads after rendering the display data of the plurality of screens includes: after rendering the first screen display data, executing the first thread to perform correction and backlight adjustment processing on the rendered first screen display data to obtain first backlight data; after rendering the first screen display data, executing the second thread to render the second screen display data and perform correction and backlight adjustment processing on the rendered second screen display data to obtain second backlight data.

It should be appreciated that, duration of the executing the first thread to perform correction and backlight adjustment processing on the rendered first screen display data is at least partially overlapped with the duration of the executing the second thread to render the second screen display data, i.e., the executing the first thread to perform correction and backlight adjustment processing on the rendered first screen display data and the executing the second thread to render the second screen display data run synchronously.

In some embodiments of the present disclosure, prior to the executing the first thread to render the first screen display data, the method further includes: determining average frame rendering time, where the average frame rendering time is an average value of respective rendering times of all frames within a preset time period; in response to that the average frame rendering time is greater than current Frames Per Second, executing the first thread to render the first screen display data.

In some embodiments of the present disclosure, when the average frame rendering time exceeds FPS, a jitter phenomenon occurs, as shown in FIG. 12 , based on this operating mode, it fails to obtain the image that needs to be processed from the MRT thread at the intermediate frame, and the image of the previous frame is extracted for ATW processing and output. In the scheme, the delay reaches 3 frames.

In order to address the jitter issue and further reduce the delay, a high time-consuming mode is provided in the embodiment of the present disclosure. As shown in FIG. 13 , one frame is divided into 2 equal parts. At the time of the intermediate frame of an Nth frame, the MRT thread starts to render the left-eye image of the Nth frame based on the predicted user gesture at the time point b, and then performs ATW processing and local dimming processing on the rendered left-eye image of the Nth frame to obtain left-eye backlight data of the Nth frame, transmits the left eye image of the Nth frame to the frame buffer, and sends the left-eye backlight data to the left screen backlight receiving module through SPI or USB data transmission. When the ATW thread acquires the Vsync signal, it renders the right-eye image of the Nth frame based on the user posture at time point c, and performs ATW correction and local dimming processing on the rendered right-eye image of the Nth frame to obtain right-eye backlight data of the Nth frame, transmits the right eye image of the Nth frame to the frame buffer, and sends the right-eye backlight data to the right screen backlight receiving module through SPI or USB data transmission. In the scheme, an absolute delay is 1.5 frames, which reduces the delay by 1.5 frames as compared with the scheme in FIG. 12 , T1=1.5 FPS, which reduces by the time of 1.5 frames as compared with the scheme in FIG. 12 , and T2<1 FPS, so as to reduce the prediction time as compared with T2 in FIG. 12 . Through shortening the time from the rendering time to the display time of the rendered image as well as ATW processing time, it is able to reduce the delay between the image rendering and display, so as to obtain more accurate images with stronger stereoscopic impression.

In some embodiments of the present disclosure, an operation flowchart of the high time-consuming mode may be shown in FIG. 14 . Step 1401, when the ATW thread acquires the Vsync signal, it renders the right-eye image of the Nth frame based on the predicted user posture, and then performs ATW correction and local dimming processing on the rendered right-eye image of the Nth frame, transmits the right eye image of the Nth frame to the frame buffer, and sends the right-eye backlight data to the right screen backlight receiving module through SPI or USB data transmission. Step 1402, whether the intermediate frame signal of the Nth frame is received is determined, if yes, step 1403 is performed, otherwise waiting operation is performed. Step 1403, at the time of the intermediate frame of the Nth frame, the MRT thread starts to render the left-eye image of the (N+1)th frame based on the predicted user posture, and then performs ATW correction and local dimming processing on the rendered left-eye image of the (N+1)th frame to obtain the left-eye backlight data of the (N+1)th frame, transmits the left-eye image of the (N+1)th frame to the frame buffer, and sends the left-eye backlight data of the (N+1)th frame to the left screen backlight receiving module through SPI or USB data transmission.

In some embodiments of the present disclosure, after the executing the second thread to correct the rendered first screen display data and the first screen display correction data is obtained, the method further includes: executing the second thread to send the first screen display correction data to the first thread. The first thread can obtain the second screen display correction data and the first screen display correction data so as to output the second screen display correction data and the first screen display correction data to the display screen for display.

In some embodiments of the present disclosure, after executing the second thread to send the first screen display correction data to the first thread, the method further includes: executing the first thread to send the first screen display correction data and the second screen display correction data to a display cache for screen display.

In some embodiments of the present disclosure, the first thread and the second thread are performed in parallel to obtain the first screen display correction data and the second screen display correction data. Therefore, the total running time of the first thread and the second thread can be further reduced, the rendering time is shortened from the time when the rendered image is displayed, and the delay problem is relieved.

In some embodiments of the present disclosure, the executing the first thread to render the first screen display data and the second screen display data sequentially further includes: predicting first user pose data after a first predetermined amount of time for a display refresh frame, and performing rendering based on the first user pose data to obtain the rendered first and second screen display data.

The above-mentioned prediction operation may be, for example, by analyzing motion data fed back by a motion sensor such as an acceleration sensor, a gyroscope, or the like, obtaining a motion state of the head of the user at present, such as a motion direction, a velocity, an acceleration, or the like, and further predicting a position that the user will reach at a next predetermined time point, thereby predicting an image that the user will see. For example, the first user pose data, as well as other user pose data referred to in the description below, may include one or a combination of direction and angle in which the user is facing, direction and angle of motion, velocity, acceleration, and the like. For example, in the embodiment of the present disclosure, the prediction operation may be performed by calculating or predicting the user gesture after a given time according to the current user gesture and the historical data of the user gesture, so as to obtain the user gesture data of the time to be displayed. Methods of calculation or prediction include, but are not limited to, prediction using neural networks.

Optionally, the first predetermined amount of display refresh frames is N+0.5 display refresh frames, where N is greater than or equal to 1. Here, the term “display refresh frame” refers to a frame of the corresponding display device during the scanning process for displaying, and is also referred to as “frame” hereinafter.

The value of N may be different based on a statistical result of rendering time and Asynchronous Time Warping (ATW) processing time for one frame of a display screen of a currently used virtual reality device. The values of N mentioned above are only examples. The value of N may be a fixed value determined according to the performance of the CPU, and may also be dynamically adjusted based on the actual usage of the current virtual reality device. For example, in the case where the CPU of the virtual reality device is computationally expensive and/or other threads occupy significant CPU resources, the rendering thread may take longer to process. In such a case, the value of N may be dynamically adjusted to a larger value so that the rendered display data is closer to the time at which it should be displayed. Similarly, the value of N may be dynamically adjusted to a smaller value when the amount of computation of the CPU of the virtual reality device is smaller and/or other threads occupy smaller CPU resources.

In some embodiments of the present disclosure, the method further includes: predicting second user pose data for a beginning node of a display frame of the first screen display data and the second screen display data and third user pose data for an ending node of the display frame; executing the second thread to correct the rendered first screen display data includes: correcting the rendered first screen display data based on the second user posture data and the third user posture data to obtain first screen display correction data; executing the first thread to correct the rendered second screen display data includes: correcting the rendered second screen display data based on the second user posture data and the third user posture data to obtain second screen display correction data.

In some embodiments of the present disclosure, correcting the rendered first screen display data and second screen display data based on the second user pose data and the third user pose data includes: interpolating the second user pose data and the third user pose data to obtain first asynchronous time warp correction reference data, and then correcting the rendered first screen display data and second screen display correction data based on the first asynchronous time warp correction reference data.

Therefore, the scene images output by the first screen and the second screen are closer to the picture expected by the user, and the tearing feeling of the picture is reduced.

At present, the processors of the mobile terminal are basically configured by multi-core multi-processor, for example, processors of various versions of ARM architecture, but of course, processors of various versions of X86 architecture, etc. may also be used. In order to more fully utilize the performance of each processor, the virtual reality display method according to some embodiments of the disclosure can adjust the running processes of the rendering thread and the ATW thread during the running process of the mobile-end virtual reality application.

In an embodiment of the present disclosure, taking the first thread and the second thread selected from the MRT thread and the ATW thread as an example, as shown in FIG. 15 and FIG. 16 , the virtual reality display method includes the following steps.

Step 1: initializing MRT and ATW threads, defining a counter VsyncBase for recording frame number, and performing the step 2.

Step 2: determining whether the VsyncBase is an odd number, if so, performing the step 3, and if not, performing the step 7.

Step 3: predicting the user posture at the moment b shown in FIG. 7 by the MRT thread through SensorPredicted and rendering a right-eye image, predicting the user posture at the time point a shown in FIG. 15 by the ATW thread based on SensorPredicted to perform left-eye ATW correction (the left-eye image is not rendered and is black in the first frame) at the time point a shown in FIG. 15 , and performing step 4.

Step 4: after rendering the right eye image, the MRT thread predicts the user posture at the moment b again and carries out ATW correction on the right eye image based on the prediction data at the moment; after the left eye image is corrected, the ATW thread transmits the left eye image to the MRT thread through the EyeBuffer to receive the right eye image after the ATW thread finishes processing the right eye operation, the ATW thread continues to perform left eye image rendering operation of a new frame based on the predicted user posture at the moment c, and the step 5 is executed.

Step 5: after the MRT thread finishes the right-eye ATW correction, receiving the left-eye final display data transmitted by the ATW thread, and performing the step 6.

Step 6: the MRT thread sends the left eye image and the right eye image to a system frame buffer for screen display, and step 11 is executed.

Step 7: the ATW thread predicts the user posture at the moment d shown in the FIG. 15 through SensorPredicted and renders a right eye image, the MRT thread predicts the user posture at the moment c shown in the FIG. 15 based on SensorPredicted to perform left eye ATW correction, and step 8 is executed.

Step 8: after the ATW thread renders the right eye image, predicting the user posture at the d moment again and carrying out ATW correction on the right eye image based on the prediction data at the d moment; after the left eye image is corrected, the MRT thread transmits the left eye image to the ATW thread through the eye buffer, receives the left eye image after the ATW thread processes the right eye, continues to perform left eye image rendering operation of a new frame based on the user posture predicted at the time e, and step 9 is executed.

Step 9: after completing the right-eye ATW correction, the ATW thread receives the left-eye final display data transmitted by the MRT thread, and step 10 is executed.

Step 10: the ATW thread sends the left eye image and the right eye image to a system frame buffer for screen display, and step 11 is executed.

Step 11: determining whether the application is finished, if so, quitting the system, otherwise, performing the step 12.

Step 12: waiting for the system Vsync signal, step 2 is performed when the next Vsync arrives.

As shown in FIG. 15 , T1 represents a time span from the left-eye rendering time to the display time, T2 represents a time span from the right-eye rendering time to the display time, T1=1.5 frames, 1.5 frames<T2<2 frames in FIG. 3 ; t1<1.5 frame, T2=1.5 frame in FIG. 15 ; by comparison, the time delay between the rendering of the left eye image and the right eye image to the display is reduced.

In this embodiment of the present disclosure, the ATW left-eye and right-eye correction time is about 35 ms, when the display data with the frame rate of 75 FPS is input, without using the technical solution of this embodiment, the output frame rate of the display data is about 20 FPS, and after using the technical solution of this embodiment, the average output frame rate of the display data can be increased to 70 FPS; when the display data with the frame rate of 60 FPS is input, after the technical scheme of the embodiment is used, the average output frame rate of the display data can reach 60 FPS. Namely, after the technical solution of the present embodiment is used, the output frequency after the display data is corrected is not lower than 90% of the input frequency of the display data.

For example, the first thread and the second thread are selected from the MRT thread and the ATW thread, as shown in FIG. 17 , the virtual reality display method includes the following steps.

Step 1701: initializing MRT and ATW threads, defining a counter for recording rendering time, and performing step 1702.

Step 1702: calculating respective rendering times of all frames within a certain time period in real time, and obtaining an average frame rendering time t, and step 1703 is executed.

Step 1703: when t<=FPS*0.5, that is, when the single-eye rendering time is less than FPS*0.25, entering the frame subdivision mode; otherwise, performing step 1704.

Step 1704: when t<=FPS, that is, when the single-eye rendering time is lower than FPS*0.5, entering the odd-even frame mode; otherwise, performing step 1705.

Step 1705: when t is greater than FPS, entering the high time-consuming mode.

The respective rendering times of all frames within the certain time period are calculated to obtain the average frame rendering time, so as to adjust the timing sequence of the virtual reality display method and device in real time in accordance with the real-time average frame rendering time during operation, thereby to utilize the resource of the processor in a better manner and greatly reduce the delay.

According to the embodiment of the present disclosure, the possibility is provided for the requirement that a high-resolution VR system at the mobile terminal is added with complex algorithm processing to improve the display effect, and the performance condition of the system operation frame rate is obviously improved; the embodiment can reduce the tearing phenomenon of the high-resolution VR system at the mobile end, lighten the dizzy sense of a user when using a VR product, reduce the time delay from the rendering of a scene to the final output of the high-resolution VR system at the mobile end to improve the VR experience effect.

Further, the first screen display correction data and the second screen display correction data may also be subjected to an anti-distortion process before being output to the screen.

The anti-distortion process is a technique of correcting a distorted image into a normal image. In particular, in a virtual reality application scene, especially a head-mounted virtual display device, a lens may need to be installed in front of a display screen to obtain a larger field angle. The use of this lens brings about a greater field angle and also distortion of the displayed image. Therefore, the first screen display correction data and the second screen display correction data are used for displaying on the first screen and the second screen, and the first screen display correction data and the second screen display correction data need to be subjected to anti-distortion processing to eliminate the influence of the lens, so that the image seen by the user is more realistic.

Optionally, the anti-distortion processing may be at least one of vertex displacement based, mesh based, and fragment based.

For example, the fragment (pad)-based anti-distortion process solves the lens distortion problem by rendering pixels in the first and second screen scene images onto a texture by a second rendering, and then processing the texture with a fragment (pixel) shader (e.g., an associated routine in the android system) to move each pixel inward onto the center of the eye.

For example, the mesh-based antialiasing process no longer performs antialiasing on each pixel, but rather performs antialiasing on one or more vertices of the mesh, thereby increasing the rate of the antialiasing process.

For example, vertex displacement based antialiasing processes are performed faster by optimizing shaders (e.g., associated routines in the android system) to process display data without performing secondary rendering on the display data.

Generally, the adjustment manner and the adjustment matrix of the distortion network are the same or similar for the first screen and the second screen. Only one distortion network may need to be calculated for the first screen scene output data and the second screen scene output data. The distortion network is computed in one thread to perform the anti-distortion processing on the first screen scene output data and the second screen scene output data together for a shorter processing time than the separate anti-distortion processing of the first screen scene output data and the second screen scene output data, which is more beneficial to reducing image delay.

An embodiment of the present disclosure further provides a virtual reality display device, as shown in FIG. 18 , including: a plurality of screens 21; a processor 22 for rendering the display data of the plurality of screens in sequence by using at least one of the at least two threads; and after rendering the display data of the plurality of screens, correcting the rendered display data by using the at least two threads.

In this embodiment of the present disclosure, after rendering the display data of multiple screens, the rendered display data is corrected by using at least two threads, instead of correcting the rendered display data by using one thread, so that the time of using multiple threads can be maximized, the performance of the current processor is fully utilized, and the frame drop phenomenon is greatly improved.

The at least two threads may include two threads or three threads or more, the multiple screens may include two screens or three screens or more, and the display data of the multiple screens are different from each other.

In this embodiment of the present disclosure, the rendering of the display data of the multiple screens in sequence by using at least one thread of the at least two threads means that the processor 22 renders the display data of the first screen by using the at least one thread, then renders the display data of the second screen, then renders the display data of the third screen, and so on, and then sequentially renders the display data of the multiple screens. For example, a first thread may be used to render the display data of the first screen, and a second thread may be used to render the display data of the second screen, thereby completing the rendering of the display data of the two screens.

In the virtual reality display method of the embodiment of the disclosure, two threads running in parallel, namely a first thread and a second thread, may be included. For example, the virtual reality display method may be applied to a virtual reality display device or an augmented reality display device including a left-eye display screen and a right-eye display screen, such as a virtual display helmet, an augmented reality display helmet, and the like, which may further include a motion sensor such as a gyroscope, an acceleration sensor, and the like, a Central Processing Unit (CPU), a memory, an image processing unit (GPU), a communication device, and the like. The method may be executed, for example, by a central processing unit or an image processing unit for the virtual reality display device, which may employ various suitable operating systems, such as an android system, a Linux system, a Unix system, or a Windows system, and a case of the android system is taken as an example for illustration hereinafter, but the embodiment of the present disclosure is not limited thereto.

In an embodiment of the present disclosure, the at least two threads include a first thread and a second thread, the plurality of screens include a first screen and a second screen, and the processor 22 is further configured to execute the first thread to render the first screen display data and the second screen display data in sequence; after rendering the first screen display data, executing the second thread to correct the rendered first screen display data to obtain first screen display correction data; and after rendering the second screen display data, executing the first thread to correct the rendered second screen display data to obtain second screen display correction data; where duration of the executing the first thread to render the second screen display data is at least partially overlapped with duration of the executing the second thread to correct the rendered first screen display data.

In this embodiment of the present disclosure, performing correction on the rendered first screen display data is not after the first thread renders the second screen display data, rather, the second thread is executed to correct the rendered first screen display data after the first thread renders the first screen display data, and the first thread is executed to correct the rendered second screen display data after the first thread renders the second screen display data, so that the time of each frame of two threads can be maximally utilized, rendering and image correction are completed before image throwing operation of each frame, the performance of a current processor is fully utilized, and the frame drop phenomenon is greatly improved; and by adjusting the rendering starting time, the rendering time is shortened from the time when the rendered image is displayed, and the time delay between the rendering and the display of the image is reduced.

The first screen display data and the second screen display data are, for example, pre-stored image data read from a storage device, for example, for a virtual reality display device, the pre-stored image data includes image data of a corresponding application, for example, image data of a tour museum, a race track of a racing game, and the like.

Optionally, the first screen may be a screen displaying an image seen by the left eye of the user, and the second screen may be a screen displaying an image seen by the right eye of the user. The first screen display data may include various parameters of objects that should be presented in the field of view of the left eye of the user, and the second screen display data may include various parameters of objects that should be presented in the field of view of the right eye of the user. As described above, the meanings of the first screen and the second screen may be interchanged, and the first screen and the second screen may be various types of display screens, for example, a Liquid Crystal Display (LCD), an organic light emitting diode display (OLED), a Micro-LED display, or the like. These display devices implement refreshing of a display image of one frame by, for example, progressive scanning or the like.

In order to make the image presented by the virtual reality device be all objects that the user can observe in the visual field when the user uses the virtual reality device, all objects in the visual field of the user are generally rendered. Meanwhile, different images need to be presented to the left eye and the right eye of the user (i.e., parallax is formed), and then the brain of the user synthesizes the different images of the left eye and the right eye, so that the image with stereoscopic impression is presented to the user. Thus, the first screen display data and the second screen display data may differ in parameters for the same object. For example, the position of the object as viewed by the left and right eyes, and the refraction of light rays through the object to the left and right eyes may be different for the same object, and, therefore, in the present disclosure, both the first screen display data and the second screen display data are rendered. By adopting the mode, compared with the mode that the whole object is rendered firstly and then the rendering output result is output to the first screen and the second screen through affine transformation, the method can obtain more accurate images with stronger stereoscopic impression.

In this embodiment of the present disclosure, the first thread and the second thread are selected from a rendering thread and a data correction thread, and the first thread is different from the second thread. The data correction thread may be the asynchronous time-warping described above.

Optionally, the rendering of the first screen display data and the second screen display data is a multi-render-target rendering.

The multi-render target rendering technique may save data of multiple pixels into different buffers (e.g., a buffer for color mapping, a buffer for normal mapping, and a buffer for depth mapping) so that these data become parameters of a subsequent lighting effect shader, so that the fineness of the output image is improved. By the multi-rendering-target rendering technology, the rendering of the illumination information can be delayed, and the rendering processing speed is improved. Meanwhile, since the first screen display data and the second screen display data are rendered respectively, it is necessary to store the pixel data of each object in the first screen display data and the second screen display data to the cache region, and then analyze the data in the illumination effect rendering process, thereby enhancing the illumination effect of the images displayed in the first screen and the second screen. Compared with the conventional method of respectively performing illumination coloring calculation on each pixel in the whole scene by using an illumination color machine, in the embodiment of the disclosure, the multiple rendering target rendering on the first screen display data and the second screen display data respectively can reduce the operation times of the illumination coloring calculation performed by the processor, and can obtain an image with enhanced illumination effect.

In some embodiments of the present disclosure, the processor is further configured to: determine average frame rendering time, where the average frame rendering time is an average value of respective rendering times of all frames within a preset time period; based on the average frame rendering time, perform backlight adjustment processing on the first screen display correction data to obtain first backlight data and perform backlight adjustment processing on the second screen display correction data to obtain second backlight data.

In some embodiments of the present disclosure, in response to that the average frame rendering time is less than or equal to a first preset value, the processor is further configured to execute the second thread to perform backlight adjustment processing on the first screen display correction data to obtain the first backlight data and execute the second thread to perform backlight adjustment processing on the second screen display correction data to obtain the second backlight data; where the first preset value is less than current Frames Per Second.

In some embodiments of the present disclosure, in response to that the average frame rendering time is greater than a first preset value and less than or equal to current Frames Per Second, the processor is further configured to execute the second thread to perform backlight adjustment processing on the first screen display correction data to obtain the first backlight data, and execute the first thread to perform backlight adjustment processing on the second screen display correction data to obtain the second backlight data.

In some embodiments of the present disclosure, the device further includes: a clock generator configured to generate a vertical synchronization signal; the processor 22 is further configured to obtain a vertical synchronization signal, and execute the first thread and the second thread based on the vertical synchronization signal, where the first thread and the second thread may render the first screen display data and the second screen display data according to the vertical synchronization signal, so as to obtain a picture that a user wishes to see, and thus may increase the synchronicity of the first screen display and the second screen display. Specifically, a Vertical synchronization (Vsync) signal is a synchronization signal applied between two frames to the display device, which indicates the end of the previous frame and the start of the next frame. This signal is active once before each frame scan, from which the field frequency of the display device, i.e. the number of refreshes of the screen per second, also referred to as the refresh frequency of the display device, can be determined. For example, the refresh frequency of the display device may be 60 Hz, 120 Hz, etc., i.e., 60, 120, etc. refreshes per second, with one display frame time being 1/60 seconds, 1/120 seconds, etc. The vertical synchronization signal is generated by a display driving device (e.g., a video card), and is used to synchronize a gate driving signal, a data signal, and the like required for displaying a frame of picture in a display process.

In some embodiments of the present disclosure, the vertical synchronization signal sent by the system is divided into odd and even, and if the vertical synchronization signal is an odd-numbered vertical synchronization signal, the first thread is a rendering thread; if the vertical synchronizing signal is an even-numbered vertical synchronizing signal, the first thread is a data correction thread; or, if the vertical synchronization signal is an even-numbered vertical synchronization signal, the first thread is a rendering thread; if the vertical synchronization signal is an odd-numbered vertical synchronization signal, the first thread is a data correction thread.

Specifically, taking the data correction thread as an asynchronous time warping thread as an example, if the vertical synchronization signal is an odd-numbered vertical synchronization signal, the first thread is a rendering thread, and the second thread is an asynchronous time warping thread; if the vertical synchronization signal is an even-numbered vertical synchronization signal, the first thread is an asynchronous time warping thread, and the second thread is a rendering thread; when the vertical synchronization signal is an odd-numbered vertical synchronization signal, rendering the first screen display data and the second screen display data in sequence by using a rendering thread, after the first screen display data is rendered, correcting the rendered first screen display data by using an asynchronous time warping thread to obtain first screen display correction data, and after the second screen display data is rendered, performing the rendering thread to correct the rendered second screen display data to obtain second screen display correction data; if the vertical synchronizing signal is an even-numbered vertical synchronizing signal, an asynchronous time warping thread is executed to render the first screen display data and the second screen display data in sequence, after the first screen display data is rendered, the rendering thread is executed to correct the rendered first screen display data to obtain first screen display correction data, and after the second screen display data is rendered, the asynchronous time warping thread is executed to correct the rendered second screen display data to obtain second screen display correction data. Therefore, by adjusting the running mechanisms of the rendering thread and the asynchronous time warping thread, different processing operations are distributed to the MRT thread and the ATW thread in the odd-even frame, the time of each frame of the two threads is maximally utilized under the condition that the ATW exceeds the half frame time, rendering and image correction are completed before the image throwing operation of each frame, the performance of the current AP processor can be fully utilized, the frame dropping phenomenon shown in the FIG. 5 is improved to the maximum extent, and the rendering time is shortened from the rendering time to the display time of the rendered image by adjusting the starting time of the left and right rendering eyes.

In another specific example, the following may also be: when the vertical synchronization signal is an even-numbered vertical synchronization signal, the first thread is a rendering thread, and the second thread is an asynchronous time warping thread; when the vertical synchronization signal is an odd-numbered vertical synchronization signal, the first thread is an asynchronous time-warping thread, and the second thread is a rendering thread. When the vertical synchronization signal is an even-numbered vertical synchronization signal, rendering the first screen display data and the second screen display data in sequence by using the rendering thread, after the first screen display data is rendered, correcting the rendered first screen display data by using the asynchronous time warping thread to obtain first screen display correction data, and after the second screen display data is rendered, performing the rendering thread to correct the rendered second screen display data to obtain second screen display correction data; when the vertical synchronizing signal is an odd-numbered vertical synchronizing signal, an asynchronous time warping thread is executed to render the first screen display data and the second screen display data in sequence, after the first screen display data is rendered, the rendering thread is executed to correct the rendered first screen display data to obtain first screen display correction data, and after the second screen display data is rendered, the asynchronous time warping thread is executed to correct the rendered second screen display data to obtain second screen display correction data. Therefore, by adjusting the running mechanisms of the rendering thread and the asynchronous time warping thread, different processing operations are distributed to the MRT thread and the ATW thread in the odd-even frame, the time of each frame of the two threads is maximally utilized under the condition that the ATW exceeds the half frame time, rendering and image correction are completed before the image throwing operation of each frame, the performance of the current AP processor can be fully utilized, the frame dropping phenomenon shown in the FIG. 5 is improved to the maximum extent, and the rendering time is shortened from the rendering time to the display time of the rendered image by adjusting the starting time of the left and right rendering eyes.

In this embodiment, the ATW left-eye and right-eye correction time is about when the display data with the frame rate of 75 FPS is input, without using the technical solution of this embodiment, the output frame rate of the display data is about and after using the technical solution of this embodiment, the average output frame rate of the display data can be increased to 70 FPS; when the display data with the frame rate of 60 FPS is input, after the technical scheme of the embodiment is used, the average output frame rate of the display data can reach 60 FPS. Namely, after the technical solution of the present embodiment is used, the output frequency after the display data is corrected is not lower than 90% of the input frequency of the display data.

In some embodiments of the present disclosure, the at least two threads include a first thread and a second thread, the plurality of screens include a first screen and a second screen, and the processor is further configured to: execute the first thread to render the first screen display data; after rendering the first screen display data, execute the first thread to perform correction and backlight adjustment processing on the rendered first screen display data to obtain first backlight data; after rendering the first screen display data, execute the second thread to render the second screen display data and perform correction and backlight adjustment processing on the rendered second screen display data to obtain second backlight data.

It should be appreciated that, duration of the executing the first thread to perform correction and backlight adjustment processing on the rendered first screen display data is at least partially overlapped with the duration of the executing the second thread to render the second screen display data, i.e., the executing the first thread to perform correction and backlight adjustment processing on the rendered first screen display data and the executing the second thread to render the second screen display data run synchronously.

In some embodiments of the present disclosure, prior to the executing the first thread to render the first screen display data, the processor is further configured to determine average frame rendering time, where the average frame rendering time is an average value of respective rendering times of all frames within a preset time period; in response to that the average frame rendering time is greater than current Frames Per Second, execute the first thread to render the first screen display data.

When the average frame rendering time is greater than current FPS, the virtual reality display device enters a high time-consuming mode. In the high time-consuming mode, through shortening the time from the rendering time to the display time of the rendered image as well as ATW processing time, it is able to reduce the delay between the image rendering and display, so as to obtain more accurate images with stronger stereoscopic impression.

In some embodiments of the present disclosure, the processor 22 is further configured to execute the second thread to send the first screen display correction data to the first thread. The first thread can obtain the second screen display correction data and the first screen display correction data so as to output the second screen display correction data and the first screen display correction data to the display screen for display.

In some embodiments of the present disclosure, the processor 22 is further configured to execute the first thread to send the first screen display correction data and the second screen display correction data to a display buffer for screen display. In some embodiments, the first thread and the second thread are performed in parallel to obtain the first screen display correction data and the second screen display correction data. Therefore, the total running time of the rendering thread and the asynchronous time warping thread can be further reduced, the rendering time is shortened from the time when the rendered image is displayed, and the delay problem is relieved.

In some embodiments of the present disclosure, the executing the first thread to render the first screen display data and the second screen display data sequentially further includes: predicting first user pose data after a first predetermined amount of time for a display refresh frame, and rendering is performed based on the first user pose data to obtain the rendered first and second screen display data.

The above-mentioned prediction operation may be, for example, by analyzing motion data fed back by a motion sensor such as an acceleration sensor, a gyroscope, or the like, obtaining a motion state of the head of the user at present, such as a motion direction, a velocity, an acceleration, or the like, and further predicting a position that the user will reach at a next predetermined time point, thereby predicting an image that the user will see. For example, the first user pose data, as well as other user pose data referred to in the description below, may include one or a combination of direction and angle in which the user is facing, direction and angle of motion, velocity, acceleration, and the like. For example, in the embodiment of the present disclosure, the prediction operation may be performed by calculating or predicting the user gesture after a given time according to the current user gesture and the historical data of the user gesture, so as to obtain the user gesture data of the time to be displayed. Methods of calculation or prediction include, but are not limited to, prediction using neural networks.

Optionally, the first predetermined amount of display refresh frames is N+0.5 display refresh frames, where N is greater than or equal to 1. Here, the term “display refresh frame” refers to a frame of the corresponding display device during the scanning process for displaying, and is also referred to as “frame” hereinafter.

The value of N may be different based on a statistical result of rendering time and Asynchronous Time Warping (ATW) processing time for one frame of a display screen of a currently used virtual reality device. The values of N mentioned above are only examples. The value of N may be a fixed value determined according to the performance of the CPU, and may also be dynamically adjusted based on the actual usage of the current virtual reality device. For example, in the case where the CPU of the virtual reality device is computationally expensive and/or other threads occupy significant CPU resources, the rendering thread may take longer to process. In such a case, the value of N may be dynamically adjusted to a larger value so that the rendered display data is closer to the time at which it should be displayed. Similarly, the value of N may be dynamically adjusted to a smaller value when the amount of computation of the CPU of the virtual reality device is smaller and/or other threads occupy smaller CPU resources.

In some embodiments of the present disclosure, the processor 22 is further configured to predict second user pose data for a beginning node of a display frame of the first screen display data and the second screen display data and third user pose data for an ending node of the display frame; executing the second thread to correct the rendered first screen display data includes: correcting the rendered first screen display data based on the second user posture data and the third user posture data to obtain first screen display correction data; executing the first thread to correct the rendered second screen display data includes: and correcting the rendered second screen display data based on the second user posture data and the third user posture data to obtain second screen display correction data.

In some embodiments of the present disclosure, the processor 22 is further configured to interpolate the second user pose data and the third user pose data to obtain first asynchronous time warp correction reference data, and then correct the rendered first screen display data and second screen display correction data based on the first asynchronous time warp correction reference data. Therefore, the scene images output by the first screen and the second screen are closer to the picture expected by the user, and the tearing feeling of the picture is reduced.

The devices provided by the present disclosure may include, but are not limited to, smart phones, tablets, media players, and the like. It should be noted that the overall structure of the device is not shown for clarity. Other structures not shown can be set by those skilled in the art according to the specific application scenario to realize the necessary functions of the device, and the present disclosure is not limited thereto.

There is also provided, in accordance with some embodiments of the present disclosure, a virtual reality display device, including a processor and a memory, on which are stored computer program instructions. The computer executable instructions, when executed by a computer, may implement a virtual reality display method in accordance with embodiments of the present disclosure.

There is also provided, in accordance with some embodiments of the present disclosure, a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, perform a virtual reality display method as described above.

The computer readable storage medium can be any combination of one or more computer readable storage media, e.g., one containing computer readable program code for randomly generating a sequence of action instructions and another containing computer readable program code for performing face activity recognition.

In general, the various example embodiments of this disclosure may be implemented in hardware or special purpose circuits, software, firmware, logic or any combination thereof. Certain aspects may be implemented in hardware, while other aspects may be implemented in firmware or software which may be executed by a controller, microprocessor or other computing device. While aspects of embodiments of the disclosure have been illustrated and described as block diagrams, flow charts, or using some other pictorial representation, it is well understood that the blocks, apparatus, systems, techniques or methods described herein may be implemented in, as non-limiting examples, hardware, software, firmware, special purpose circuits or logic, general purpose hardware or controller or other computing devices, or some combination thereof.

The processor in the disclosed embodiments may be an integrated circuit chip having signal processing capabilities. The processor may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. The general purpose processor may be a microprocessor, or the processor may be any conventional processor or the like, either of the X86 architecture or the ARM architecture.

The computer readable storage media in the disclosed embodiments may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Synchronous Link Dynamic Random Access Memory (SLDRAM), and direct memory bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, without being limited to, these and any other suitable types of memory.

In the embodiments of the methods of the present disclosure, the sequence numbers of the steps are not used to limit the sequence of the steps, and for those skilled in the art, the sequence of the steps is not changed within the protection scope of the present disclosure without creative efforts.

It should be noted that, in this specification, each embodiment is described in a progressive manner, and the same and similar parts between the embodiments are referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments, since they are substantially similar to the product embodiments, the description is simple, and reference may be made to the partial description of the product embodiments for relevant points.

The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present disclosure, and shall cover the scope of the present disclosure. Therefore, the scope of the present disclosure should be subject to the scope of the claims. 

What is claimed is:
 1. A virtual reality display method, comprising: rendering display data of a plurality of screens in sequence by utilizing at least one thread of at least two threads; after rendering the display data of the plurality of screens, correcting the rendered display data by using the at least two threads.
 2. The virtual reality display method according to claim 1, wherein the at least two threads comprise a first thread and a second thread, the plurality of screens comprise a first screen and a second screen, and the rendering the display data of the plurality of screens in sequence by utilizing at least one thread of at least two threads comprises: executing the first thread to render the first screen display data and the second screen display data in sequence; wherein the correcting the rendered display data by using the at least two threads after rendering the display data of the plurality of screens comprises: after rendering the first screen display data, executing the second thread to correct the rendered first screen display data to obtain first screen display correction data; and after rendering the second screen display data, executing the first thread to correct the rendered second screen display data to obtain second screen display correction data; wherein duration of the executing the first thread to render the second screen display data is at least partially overlapped with duration of the executing the second thread to correct the rendered first screen display data.
 3. The virtual reality display method according to claim 2, wherein the first thread and the second thread are selected from a rendering thread and a data correction thread, and the first thread is different from the second thread.
 4. The virtual reality display method according to claim 3, further comprising: determining average frame rendering time, wherein the average frame rendering time is an average value of respective rendering times of all frames within a preset time period; based on the average frame rendering time, performing backlight adjustment processing on the first screen display correction data to obtain first backlight data and performing backlight adjustment processing on the second screen display correction data to obtain second backlight data.
 5. The virtual reality display method according to claim 4, wherein the performing backlight adjustment processing on the first screen display correction data to obtain first backlight data and performing backlight adjustment processing on the second screen display correction data to obtain second backlight data based on the average frame rendering time comprises: in response to that the average frame rendering time is less than or equal to a first preset value, executing the second thread to perform backlight adjustment processing on the first screen display correction data to obtain the first backlight data and executing the second thread to perform backlight adjustment processing on the second screen display correction data to obtain the second backlight data; wherein the first preset value is less than current Frames Per Second.
 6. The virtual reality display method according to claim 4, wherein the performing backlight adjustment processing on the first screen display correction data to obtain first backlight data and performing backlight adjustment processing on the second screen display correction data to obtain second backlight data based on the average rendering time comprises: in response to that the average frame rendering time is greater than a first preset value and less than or equal to current Frames Per Second, executing the second thread to perform backlight adjustment processing on the first screen display correction data to obtain the first backlight data, and executing the first thread to perform backlight adjustment processing on the second screen display correction data to obtain the second backlight data.
 7. The virtual reality display method according to claim 6, wherein prior to executing the first thread to render the second screen display data, the method further comprises: acquiring a vertical synchronization signal; when the vertical synchronizing signal is an odd-numbered vertical synchronizing signal, the first thread is a rendering thread; when the vertical synchronizing signal is an even-numbered vertical synchronizing signal, the first thread is a data correction thread; or when the vertical synchronizing signal is an even-numbered vertical synchronizing signal, the first thread is a rendering thread; when the vertical synchronization signal is an odd-numbered vertical synchronization signal, the first thread is a data correction thread.
 8. The virtual reality display method according to claim 1, wherein the at least two threads comprise a first thread and a second thread, the plurality of screens comprise a first screen and a second screen, and the rendering the display data of the plurality of screens in sequence by utilizing at least one thread of at least two threads comprises: executing the first thread to render the first screen display data; wherein the correcting the rendered display data by using the at least two threads after rendering the display data of the plurality of screens comprises: after rendering the first screen display data, executing the first thread to perform correction and backlight adjustment processing on the rendered first screen display data to obtain first backlight data; after rendering the first screen display data, executing the second thread to render the second screen display data and perform correction and backlight adjustment processing on the rendered second screen display data to obtain second backlight data.
 9. The virtual reality display method according to claim 8, wherein prior to the executing the first thread to render the first screen display data, the method further comprises: determining average frame rendering time, wherein the average frame rendering time is an average value of respective rendering times of all frames within a preset time period; in response to that the average frame rendering time is greater than current Frames Per Second, executing the first thread to render the first screen display data.
 10. The virtual reality display method according to claim 2, wherein subsequent to executing the second thread to correct the rendered first screen display data and obtain first screen display correction data, the method further comprises: executing the second thread to send the first screen display correction data to the first thread.
 11. The virtual reality display method according to claim 10, wherein subsequent to executing the second thread to send the first screen display correction data to the first thread, the method further comprises: executing the first thread to send the first screen display correction data and the second screen display correction data to a display cache for screen display.
 12. The virtual reality display method according to claim 2, wherein the first thread and the second thread are executed in parallel to obtain the first screen display correction data and the second screen display correction data.
 13. A virtual reality display device, comprising: a plurality of screens; a processor, configured to: render display data of a plurality of screens in sequence by utilizing at least one thread of at least two threads; and after rendering the display data of the plurality of screens, correct the rendered display data by using the at least two threads.
 14. The virtual reality display device according to claim 13, wherein the at least two threads comprise a first thread and a second thread, the plurality of screens comprise a first screen and a second screen, the processor is further configured to execute the first thread to render the first screen display data and the second screen display data in sequence; after rendering the first screen display data, execute the second thread to correct the rendered first screen display data to obtain first screen display correction data; and after rendering the second screen display data, execute the first thread to correct the rendered second screen display data to obtain second screen display correction data; wherein duration of the executing the first thread to render the second screen display data is at least partially overlapped with duration of the executing the second thread to correct the rendered first screen display data.
 15. The virtual reality display device according to claim 14, wherein the processor is further configured to: determine average frame rendering time, wherein the average frame rendering time is an average value of respective rendering times of all frames within a preset time period; based on the average frame rendering time, perform backlight adjustment processing on the first screen display correction data to obtain first backlight data and perform backlight adjustment processing on the second screen display correction data to obtain second backlight data.
 16. The virtual reality display device according to claim 15, wherein, in response to that the average frame rendering time is less than or equal to a first preset value, the processor is further configured to execute the second thread to perform backlight adjustment processing on the first screen display correction data to obtain the first backlight data and execute the second thread to perform backlight adjustment processing on the second screen display correction data to obtain the second backlight data; wherein the first preset value is less than current Frames Per Second.
 17. The virtual reality display device according to claim 15, wherein, in response to that the average frame rendering time is greater than a first preset value and less than or equal to current Frames Per Second, the processor is further configured to execute the second thread to perform backlight adjustment processing on the first screen display correction data to obtain the first backlight data, and execute the first thread to perform backlight adjustment processing on the second screen display correction data to obtain the second backlight data.
 18. The virtual reality display device according to claim 17, further comprising: a clock generator configured to generate a vertical synchronization signal; the processor is further configured to obtain a vertical synchronization signal, execute the first thread and the second thread based on the vertical synchronization signal, and when the vertical synchronization signal is an odd-numbered vertical synchronization signal, the first thread is a rendering thread; when the vertical synchronizing signal is an even-numbered vertical synchronizing signal, the first thread is a data correction thread; or, when the vertical synchronization signal is an even-numbered vertical synchronization signal, the first thread is a rendering thread; when the vertical synchronization signal is an odd-numbered vertical synchronization signal, the first thread is a data correction thread.
 19. The virtual reality display device according to claim 13, wherein the at least two threads comprise a first thread and a second thread, the plurality of screens comprise a first screen and a second screen, and the processor is further configured to: execute the first thread to render the first screen display data; after rendering the first screen display data, execute the first thread to perform correction and backlight adjustment processing on the rendered first screen display data to obtain first backlight data; after rendering the first screen display data, execute the second thread to render the second screen display data and perform correction and backlight adjustment processing on the rendered second screen display data to obtain second backlight data.
 20. A non-transitory computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are executed by a processor to perform the virtual reality display method according to claim
 1. 